home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-06-28 | 687 b | 37 lines | [TEXT/CWIE] |
- // Source code for Klingon Clock. Copyright (C) 1996-1997
- // Charles H. Hemstreet IV
- //
- // Started at MacHack 1996
- // Completed at MacHack 1997
- //
- // Best thanks to:
- // My wife Regie, son Chad and baby
- // Other thanks to Elden Wood and Bob Clark
- //
- // This code is distributed "as-is" and implies no warranty or guarantee.
-
-
- #ifndef __TIMEUTIL__
- #include "timeUtil.h"
- #endif
-
- #include <OSUtils.h>
-
-
-
-
- void getTime(short cur_time[])
- {
- DateTimeRec myDateRec;
-
- GetTime(&myDateRec);
-
- cur_time[0] = myDateRec.hour;
- cur_time[1] = myDateRec.minute;
- cur_time[2] = myDateRec.second;
- cur_time[3] = myDateRec.year;
- cur_time[4] = myDateRec.month;
- cur_time[5] = myDateRec.dayOfWeek;
- }
-
-